// 公共接口
import http from "../common/http.js"

export default {
 // 入驻商信息
 mchMsg: (data, needLoading) => {
   return http.GET("/default/mch", data, needLoading);
 },
 // 商品列表
 goodList: (data, needLoading) => {
   return http.GET("/default/goods-list", data, needLoading);
 },
 // 入驻商商品分类
 mchNextList: (data, needLoading) => {
   return http.GET("/default/mch-cat", data, needLoading);
 },
 // 入驻商列表
 mchList: (data, needLoading) => {
   return http.GET("/default/mch-list", data, needLoading);
 },
 // 入驻商分类列表
 mchFen: (data, needLoading) => {
   return http.GET("/default/mch-common-cat-list", data, needLoading);
 },
 // 入驻商注册
 goodRegister: (data, needLoading) => {
   return http.POSTJSON("/default/mch-reg", data, needLoading);
 },
  // 入驻商数据回显
 mchShow: (data, needLoading) => {
   return http.GET("/default/mch-reg-info", data, needLoading);
 },
 // 入驻商设置
 mchSet: (data, needLoading) => {
   return http.POST("/default/mch-setting", data, needLoading);
 },
 // 入驻商访客
 mchFangke: (data, needLoading) => {
   return http.GET("/default/mch-visit", data, needLoading);
 },
 
 // 入驻商后台店铺设置回显
 mchStoreGet: (data, needLoading) => {
   return http.GET("/store-admin/mch-info", data, needLoading);
 },
 // 修改入驻商后台店铺设置
 mchStoreSet: (data, needLoading) => {
   return http.POST("/store-admin/mch-info-save", data, needLoading);
 },
 
 
 // 提现
 mchWithdrawal: (data, needLoading) => {
   return http.POST("/store-admin/mch-cash-submit", data, needLoading);
 },
 // 获取用户信息
 userMsg: (data, needLoading) => {
   return http.GET("/user/get-user-info", data, needLoading);
 },
 // 二维码
 mchCode: (data, needLoading) => {
   return http.GET("/store-admin/mch-qrcode", data, needLoading);
 },
 
 
}